package org.xyl.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 诊断配置类
 */
@Configuration
@ConfigurationProperties(prefix = "diagnosis")
public class DiagnosisConfig {
    private DeviceApi deviceApi;
    private int maxLogAgeDays;
    
    public static class DeviceApi {
        private String baseUrl;
        
        public String getBaseUrl() {
            return baseUrl;
        }
        
        public void setBaseUrl(String baseUrl) {
            this.baseUrl = baseUrl;
        }
    }
    
    // Getters and Setters
    public DeviceApi getDeviceApi() {
        return deviceApi;
    }
    
    public void setDeviceApi(DeviceApi deviceApi) {
        this.deviceApi = deviceApi;
    }
    
    public int getMaxLogAgeDays() {
        return maxLogAgeDays;
    }
    
    public void setMaxLogAgeDays(int maxLogAgeDays) {
        this.maxLogAgeDays = maxLogAgeDays;
    }
}